﻿using System;
using AgileConfig.Server.Common;
using FreeSql.DataAnnotations;
using MongoDB.Bson.Serialization.Attributes;

namespace AgileConfig.Server.Data.Entity;

[Table(Name = "agc_publish_timeline")]
[OraclePrimaryKeyName("agc_publish_timeline_pk")]
public class PublishTimeline : IEntity<string>
{
    [Column(Name = "app_id", StringLength = 36)]
    public string AppId { get; set; }

    [Column(Name = "publish_time")]
    [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
    public DateTime? PublishTime { get; set; }

    [Column(Name = "publish_user_id", StringLength = 36)]
    public string PublishUserId { get; set; }

    [Column(Name = "publish_user_name", StringLength = 50)]
    public string PublishUserName { get; set; }

    [Column(Name = "version")] public int Version { get; set; }

    [Column(Name = "log", StringLength = 100)]
    public string Log { get; set; }

    [Column(Name = "env", StringLength = 50)]
    public string Env { get; set; }

    [Column(Name = "id", StringLength = 36)]
    public string Id { get; set; }
}